Real-time exposure control for automatic light control

ABSTRACT

An imager and a method for real-time, non-destructive monitoring of light incident on imager pixels during their exposure to light. Real-time or present pixel signals, which are indicative of present illumination on the pixels, are compared to a reference signal during the exposure. Adjustments, if necessary, are made to programmable parameters such as gain and/or exposure time to automatically control the imager&#39;s exposure to the light. In a preferred exemplary embodiment, only a selected number of pixels are monitored for exposure control as opposed to monitoring the entire pixel array.

FIELD OF THE INVENTION

The invention relates generally to imaging devices and more particularly to real-time exposure control for automatic light control in an imaging device.

BACKGROUND

A CMOS imager circuit includes a focal plane array of pixel cells, each one of the cells including a photosensor, for example, a photogate, photoconductor or a photodiode overlying a substrate for accumulating photo-generated charge in the underlying portion of the substrate. Each pixel cell has a readout circuit that includes at least an output field effect transistor formed in the substrate and a charge storage region formed on the substrate connected to the gate of an output transistor. The charge storage region may be constructed as a floating diffusion region. Each pixel may include at least one electronic device such as a transistor for transferring charge from the photosensor to the storage region and one device, also typically a transistor, for resetting the storage region to a predetermined charge level prior to charge transference.

In a CMOS imager, the active elements of a pixel cell perform the necessary functions of: (1) photon to charge conversion; (2) accumulation of image charge; (3) resetting the storage region to a known state; (4) selection of a pixel for readout; and (5) output and amplification of a signal representing pixel charge. The charge at the storage region is typically converted to a pixel output voltage by the capacitance of the storage region and a source follower output transistor.

CMOS imagers of the type discussed above are generally known as discussed, for example, in U.S. Pat. No. 6,140,630, 6,376,868, 6,310,366, 6,326,652, 6,204,524 and 6,333,205, assigned to Micron Technology, Inc., which are hereby incorporated by reference in their entirety.

FIG. 1 illustrates a block diagram for a CMOS imager 10. The imager 10 includes a pixel array 20. The pixel array 20 comprises a plurality of pixels arranged in a predetermined number of columns and rows. The pixels of each row in array 20 are all turned on at the same time by a row select line and the pixels of each column are selectively output by a column select line. A plurality of row and column lines are provided for the entire array 20.

The row lines are selectively activated by the row driver 32 in response to row address decoder 30 and the column select lines are selectively activated by the column driver 36 in response to column address decoder 34. Thus, a row and column address is provided for each pixel. The CMOS imager 10 is operated by the control circuit 40, which controls address decoders 30, 34 for selecting the appropriate row and column lines for pixel readout, and row and column driver circuitry 32, 36, which apply driving voltage to the drive transistors of the selected row and column lines.

Each column contains sampling capacitors and switches 38 associated with the column driver 36 reads a pixel reset signal V_(rst) and a pixel image signal V_(sig) for selected pixels. A differential signal (V_(rst)−V_(sig)) is produced by differential amplifier 40 for each pixel and is digitized by analog-to-digital converter 45 (ADC). The analog-to-digital converter 45 supplies the digitized pixel signals to an image processor 50, which forms a digital image output.

Lighting can effect image exposure. Light conditions may change spatially and over time. Thus, automatic light control is required to ensure that the best image is obtained by controlling the image sensor's exposure to the light. In some imager applications, there is a need to use the illumination during the actual exposure of an image (i.e., “present illumination”) to control the exposure (i.e., perform exposure control). That is, there is a need to use present illumination because the use of the previous picture's illumination may not be sufficient for the intended application.

One exemplary application that would benefit from using present illumination in exposure control is the imager in a swallowable pill application, such as the one described in copending U.S. application Ser. No. 10/143,578, the disclosure of which is incorporated herein by reference. Due to the nature of the imager in a pill application, automatic light control using present illumination is required. A proposed solution would be to light the application's light source (e.g., light emitting diodes) prior to the actual exposure periods. This technique, however, creates an undesirable high waste of energy and power by having the light source on longer than the exposure period.

Accordingly, there is a desire and need for automatic light control during an exposure period that uses present illumination, yet does not unnecessarily waste energy or power in the process.

SUMMARY

The invention provides automatic light control during an exposure period using present illumination.

Various exemplary embodiments of the invention provide an imager and a method for real-time, non-destructive monitoring of light incident on imager pixels during their exposure to light. Real-time or present pixel signals, which are indicative of present illumination on the pixels, are compared to a reference signal during the exposure. Adjustments, if necessary, are made to programmable parameters such as gain and/or exposure time to automatically control the imager's exposure to the light. In a preferred exemplary embodiment, only a selected number of pixels are monitored for exposure control as opposed to monitoring the entire pixel array.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing and other advantages and features of the invention will become more apparent from the detailed description of exemplary embodiments provided below with reference to the accompanying drawings in which:

FIG. 1 illustrates a block diagram for a CMOS imager;

FIG. 2 illustrates a block diagram of an exemplary imager light control function constructed in accordance with an embodiment of the invention;

FIG. 3 illustrates in flowchart form an exemplary method of performing automatic light control in accordance with an embodiment of the invention;

FIG. 4 illustrates a graph of gain settings and pixel output levels versus time according to an operation of the invention;

FIG. 5 illustrates in schematic form an exemplary embodiment of a voltage reference generator according to the invention;

FIG. 6 illustrates another exemplary imager constructed in accordance with another embodiment of the invention;

FIG. 7 shows a processor system incorporating at least one imaging device constructed in accordance with an embodiment of the invention; and

FIG. 8 shows another exemplary system incorporating at least one imaging device constructed in accordance with another embodiment of the invention.

DETAILED DESCRIPTION

Referring to the figures, where like reference numbers designate like elements, FIG. 2 shows a portion of an exemplary imager 110 containing a light control function constructed in accordance with an embodiment of the invention. The imager 110 includes a pixel array 120 containing a plurality of pixels 122 organized in rows ROW₁, . . . , ROW_(N) and columns COLUMN₁, . . . , COLUMN₂₅₆. A plurality of row lines RL and column lines CL are provided for the entire array 20. Pixels 122 in a same row e.g., ROW₁ are connected to row selection circuitry 132 by respective row lines RL. Pixels 122 in a same column COLUMN₁, . . . , COLUMN₂₅₆ are connected by a respective column line CL to a dedicated sampling capacitors and switches 140 ₁, . . . , 140 ₂₅₆ (collectively “sampling capacitors and switches 140”) for that column COLUMN₁, . . . , COLUMN₂₅₆.

The imager 110 also includes a plurality of comparators 160 ₁, . . . , 160 ₆₄ (collectively “comparators 160”). In the illustrated embodiment, there are sixty-four comparators 160, one for every four columns of the pixel array 120. As is discussed below in more detail, the invention is not limited to a specific number of comparators 160. For the illustrated embodiment, the inventors have determined that sixty-four comparators 160, connected to sixty-four different columns is desirable. In the illustrated embodiment, the first comparator 160 ₁ is connected to the column line CL of the first column COLUMN₁, the second comparator 160 ₂ is connected to the column line CL of the fifth column, etc. The last comparator 160 ₆₄ is connected to the column line CL of the 253rd column COLUMN₂₅₃.

In operation, the rows are selected in sequence. A “scan” as used herein is a sequence of consecutive row selections. When a predefined row e.g., ROW₁ in the array 120 is selected, the comparators 160 are connected to the set of pixels 122 in the dedicated columns e.g., COLUMN₁, COLUMN₅, . . . , COLUMN₂₅₃. The comparators 160 receive pixel signals from their respective column lines CL. The pixel signals, as is discussed below in more detail, are used to determine the present illumination of the pixels 122 of the respective columns.

The comparators 160 are also connected to a voltage reference generator 170 that outputs a reference voltage V_(ref) to be compared against the pixels signals. As is discussed below, the voltage reference generator 170 is controllable to output different reference voltages V_(ref) when desired. Each comparator 160 outputs one logic value (e.g., logical “1”) when its respective pixel signal exceeds the reference voltage V_(ref) and a second different logical value (e.g., logical “0”) when its respective pixel signal has not exceeded the reference voltages V_(ref).

A bit collection circuit 162 is used to collect the results of the comparators 160 and to output the results to a counter 164. The counter 164 counts the number of pixels that have exceeded the reference voltage V_(ref) in a single scan (e.g., the predetermined number of consecutively selected rows). The output of the counter 164 is used by a digital logic block 166 and compared to a predetermined number of pixels in the block 166. Depending upon the comparison, as is explained below in more detail with respect to FIG. 3, the digital block 166 may output an analog gain value ANALOG GAIN and/or an illumination stop signal ILLUMINATION STOP. The analog gain value ANALOG GAIN is used during pixel readout to ensure that the appropriate signal strength is used during the readout process. The illumination stop signal ILLUMINATION STOP is used to end the exposure period for all of the pixels 122 in the array 120 (i.e., stop the exposure of light onto the pixels 122).

Although not shown, the imager 110 also includes a differential amplifier (e.g., amplifier 40 of FIG. 1), an analog-to-digital converter (e.g., ADC 45 of FIG. 1) and an image processor (e.g., processor 50 of FIG. 1). As described above with reference to FIG. 1, the sample and hold circuit samples and holds pixel reset V_(rst) and a pixel image signals V_(sig) for selected pixels. The differential amplifier produces a differential signal (V_(rst)−V_(sig)) for each pixel, which is digitized by the analog-to-digital converter The digitized pixel signals are input by the image processor and output as a digital image.

The illustrated imager 110 also performs automatic light control according to an embodiment of the invention. FIG. 3 illustrates an exemplary method 200 of performing automatic light control in accordance with an embodiment of the invention. The method 200 has some desirable requirements that enable it to achieve automatic light control in a quick, efficient, real-time and non-destructive manner.

For example, method 200 uses a measurement time that is part of and no greater than the total exposure time. Keeping the measurement time within the boundaries of the total exposure helps conserve power. Another desirable requirement is that the measurements taken during execution of method 200 are performed on a subset of pixels, rather than the entire array. The measurements are non-destructive, which means that the pixels are not reset during the exposure.

The method 200 seeks to obtain a predefined number of pixels having a predefined signal level (discussed in more detail below). To ensure a fast light control process, method 200 uses analog pixel signals rather than using analog-to-digital converted pixel signals. The method 200 will not include pixels having “white spots” (i.e., pixels with defects or extremely high dark current) in its final light control determination. The method 200 uses programmable (i.e., adjustable parameters) such as e.g., the analog gain required during pixel readout, required number of pixels at the predefined signal level (“P_(r)”), preferred exposure time (“t₁”) and maximum exposure time (“t_(m)”). “Exposure time” is the time the light source is illuminated.

As will become apparent, method 200 continuously scans the predefined pixels during the exposure period. Decisions on the readout gain and exposure time settings are made based on the time intervals when the required number of pixels P_(r) reach the reference level V_(ref) (if they reach the level at all). Adjustments to certain parameters, including the reference level V_(ref), maximum exposure time t_(m) and gain, may be made during the exposure period.

Before execution of method 200 begins, the required number of pixels at the predefined signal level P_(r) must be set. In addition, the preferred exposure time t₁ and maximum exposure time t_(m) must also be set. The values for the required number of pixels P_(r), preferred exposure time t₁ and maximum exposure time t_(m) are application specific and the invention is not to be limited to any specific values for these parameters. The maximum exposure time t_(m) limits the exposure duration to prevent blurring of the images. As will become apparent, the timing values used to determine changes in the reference level (V_(ref)) and gain are determined based on the preferred exposure time t₁.

Execution of method 200 begins by setting the reference level V_(ref) (step 202). In a desired embodiment, V_(ref) is set to V_(fs)/G_(max), where V_(fs) is the full scale signal and G_(max) is the maximum gain that can be used. An exemplary value for V_(fs) is 1V and an exemplary value for G_(max) is 4. Once the reference level V_(ref) is set, the exposure is started and the current exposure time t is set to 0 (step 204). It should be noted that how the exposure is started is application specific. For example, in a swallowable pill application, or any application with its own light source, the exposure is started by turning on the light source. For other applications where the light is continuous, the exposure period is the integration period. As such, the start of the exposure period is the start of the integration period (which could be activated by a shutter or some other method known in the art).

All of the predefined pixels are scanned (step 206) during an exposure (or integration period). The pixel signals V_(sig) from all the predefined scanned pixels are sent via a respective column line to a respective comparator. Once all of the pixels are scanned, the present time t is compared to the maximum exposure time t_(m) (step 208). If the present time t is greater than the maximum exposure time t_(m), the method continues at step 218 where the gain is set to maximum gain G_(max). The exposure is stopped (i.e., the digital block 166 of FIG. 2 outputs the illumination stop signal ILLUMINATION STOP to turn off the illumination devices or to end the integration period, depending upon the application)(step 220) and the method 200 ends.

The new gain setting is reflected as line ‘a’ in FIG. 4, which is a graph of gain settings and pixel output level versus time. In FIG. 4, solid lines 402, 404 and 406 reflect respective gain limits for the various pixel output versus time combinations. Specifically, line 402 reflects the gain limit set to the minimum gain G_(min), line 404 represents the gain limit G₂ (a gain halfway between the maximum and minimum) and line 406 reflects the gain limit set to the minimum gain G_(max).

Referring again to FIG. 3, if at step 208 the present time t is not greater than the maximum exposure time t_(m), the method continues at step 210 where, for each predefined pixel, each comparator determines if the pixel signal V_(sig) is greater than the reference level V_(ref). If a required number of pixels P_(r) of the predefined number of pixels do not have a pixel signal V_(sig) that is greater than the reference level V_(ref) (step 210), the method 200 continues at step 206 where all of the predefined pixels are scanned once again.

If the required number of pixels P_(r) of the predefined number of pixels have a pixel signal V_(sig) that is greater than the reference level V_(ref) (step 210) the method 200 continues at step 212 to determine the appropriate light control action.

If the present time t is less than t₁/G_(max), the readout gain is set to the minimum gain G_(min) and the reference level V_(ref) is set to V_(fs) (step 214). The new gain setting is reflected as line ‘b’ in FIG. 4. The exposure is allowed to continue. As such, the method 200 continues at step 222 where all of the predefined pixels are scanned again. At step 224 it is determined, for each predefined pixel, if the pixel signal V_(sig) is greater than the new reference level V_(ref). If a required number of pixels P_(r) of the predefined number of pixels do not have a pixel signal V_(sig) that is greater than the reference level V_(ref) (step 224), the method 200 continues at step 226 to determine if the present time t is greater than the maximum exposure time t_(m).

If it is determined that the present time t is not greater than the maximum exposure time t_(m), the method 200 continues at step 222. If it is determined that the present time t is greater than the maximum exposure time t_(m) (step 226) or that required number of pixels P_(r) have a pixel signal V_(sig) that is greater than the reference level V_(ref) (step 224), the exposure is stopped (step 220) and the method 200 terminates.

If at step 212 it is determined that t₁/G_(max)<t<t₁G₂/G_(max), the readout gain is set to G₂ (i.e., the gain halfway between the maximum and minimum gains), the reference level V_(ref) is set to V_(fs)/G₂ (step 216), and the exposure is allowed to continue. As such, the method 200 continues at step 222 where all of the predefined pixels are scanned again (as discussed above). The new gain setting is reflected as line ‘c’ in FIG. 4.

If at step 212 it is determined that t₁G₂/G_(max)<t, the readout gain is set to the maximum gain G_(max) (step 218) and the exposure is stopped (step 220). The new gain setting is reflected as line ‘d’ in FIG. 4.

Thus, the illumination on the pixels is monitored in real-time, with adjustments to exposure time duration and readout gain (if necessary). Present illumination on the pixels is determined in a non-destructive manner. That is, the signal level of the pixels is not altered or effected in any manner so that the eventual digital image reflects the image captured by the pixels. The method 200 conserves power by only utilizing the light source during the exposure period (as opposed to illuminating the light source prior to and longer than the exposure period).

In method 200, the rows are scanned sequentially, but the invention is not so limited. The columns are checked in parallel by comparing the pixel signals to the reference level in the comparators 160 (FIG. 2).

For CMOS image sensors, the pixel is typically reset before the exposure. As such, the pixel signal output level V_(out) begins at the reset voltage V_(rst). When exposed to light, the pixel output signal level (in absolute voltage) gradually drops toward a ground potential during the integration/exposure period. Thus, the pixel signal V_(sig) is usually defined as V_(sig)=V_(rst)−V_(out). The defined threshold level V_(th) is usually defined as V_(th)=V_(rst)−V_(pix-th), where V_(pix-th) is the pixel threshold referred to ground.

The reference voltage presented to the comparators is the voltage (referred to ground) that represents the pixel output voltage V_(pix-th) (referred to ground) at the desired signal level V_(th) (referred to reset level). V_(sig) is V_(rst) minus the pixel output level at any time, thus V_(th)=V_(rst)−V_(pix-th). During processing, the reference level V_(ref) is V_(fs)/gain, ideally referenced against V_(rst). V_(rst), however, is not available during the exposure. As such, an average reset level V_(rst,mean) is used during the exposure period. V_(rst,mean) is the average reset level from a set of dark (i.e., light shielded) pixels outside or at the border of the image area. The pixel signal level is given as the difference between the pixel reset level and the instantaneous pixel output voltage, and will this be a positive voltage increasing from 0 during exposure.

During method 200, the results of the first scan of the predetermined pixels (which in the illustrated embodiment is 640 pixels) is used as a check for “white spots.” These pixels are not allowed to contribute to the light control determinations effecting gain and exposure time settings. The method 200 may be modified to scan additional pixels to compensate for the “white spot” pixels. In addition, method 200 may include the option to check for a predetermined number of saturated pixels after each scanned line, or at other intervals based on selected rows, to terminate the scan before it completes. This option increases the exposure time resolution.

The supply voltage in the exposure period may be different from the supply voltage during pixel readout. This means that the pixel reset level may not be correct during exposure. The voltage reference generator 170 according to the invention (FIG. 5) compensates for this. The generator 170 includes several sample and hold switches 502, 504, 506, 512, 514, 516, capacitors 508, 518, 524, 528, 534, 544, three amplifiers 510, 520, 526 and additional switches S1, S2.

In the illustrated generator 170, a mean reset value V_(rst,mean) from a set of dummy pixels is sampled and stored on capacitor 508 just before the light is illuminated (or the integration period begins). A low droop rate is required as the reset level V_(rst,mean) must be valid throughout the complete light control method 200. To reduce leakage, the sampled value V_(rst,mean) is buffered in amplifier 510 and feedback to the switch 506 terminal and to the first sampling capacitor 508. The full scale level V_(fs) is sampled from a supply voltage source in an identical manner and a switched capacitor circuit (i.e., capacitors 524, 534, 544 and switches S1, S2) generates the reference V_(ref) sent to the comparators. That is, V_(ref)=V_(rst,mean)−V_(fs)/x, where x=gain.

In the illustrated embodiment of the generator 170, the generation of the reference V_(ref) is done by subtraction of the predefined fraction of the full scale signal V_(fs) from the average reset level V_(rst,mean). It should be noted that the generation of the reference V_(ref) may be based on addition or multiplication of currents and the invention is not to be limited to the subtraction technique illustrated in FIG. 5. V_(fs) is divided by the readout gains 1, 2, or 4 according to the position of the switches S1, S2. The value is buffered by the third amplifier 566, which has its reference terminal connected to the V_(rst,mean) signal. Then, V_(fs)/x, where x=gain, becomes relative to V_(rst,mean) and the output becomes V_(rst,mean)−V_(fs)/x relative to ground, which is desirable.

FIG. 6 illustrates another exemplary imager 610 constructed in accordance with another exemplary embodiment of the invention. The illustrated imager 610 compensates for comparator input offsets, which may be present in the imager 110 illustrated in FIG. 2. The illustrated imager 610 uses half the number of comparators 660 ₁, 660 ₂, . . . , 660 ₃₂ that are used in the FIG. 2 imager 110. The illustrated imager 610 compares columns in two consecutive phases. In phase one, the outputs from the first half of the columns (e.g., column 1, column 9, . . . , column 249) are input into the comparators 660 ₁, 660 ₂, . . . , 660 ₃₂ via input switches 661 _(1a), 661 _(2a), . . . , 661 _(32a) and tested against the reference level V_(ref) via input switches 661 _(1b), 661 _(2b), . . . , 661 _(32b). The results are output from the comparators 660 ₁, 660 ₂, . . . , 660 ₃₂ to the bit collection unit 662 via switch 663 ₁, 663 ₂, . . . , 663 ₃₂. In the second phase, the outputs from the second half of the columns (e.g., column 5, column 13, . . . , column 253) are input into the comparators 660 ₁, 660 ₂, . . . , 660 ₃₂ via input switches 661 _(1b), 661 _(2b), . . . , 661 _(32b) and tested against the reference level V_(ref) via input switches 661 _(1a), 661 _(2a), . . . , 661 _(32a). The results are output from an inverted output of the comparators 660 ₁, 660 ₂, . . . , 660 ₃₂ to the bit collection unit 662 via switches 663 ₁, 663 ₂, . . . , 663 ₃₂.

Using swapped input and output terminals of the comparators 660 ₁, 660 ₂, . . . , 660 ₃₂, potential offsets are substantially removed from the light control process. This improves the accuracy of the light control process of the invention.

FIG. 7 shows system 700, a typical processor system modified to include an imaging device 708 constructed in accordance with an embodiment of the invention (i.e., imager 110 of FIG. 2, imager 610 of FIG. 6). The processor-based system 700 is exemplary of a system having digital circuits that could include image sensor devices. Without being limiting, such a system could include a computer system, camera system, scanner, machine vision, vehicle navigation, video phone, surveillance system, auto focus system, star tracker system, motion detection system, image stabilization system, and data compression system.

System 700, for example a camera system, generally comprises a central processing unit (CPU) 702, such as a microprocessor, that communicates with an input/output (I/O) device 706 over a bus 704. Imaging device 708 also communicates with the CPU 702 over the bus 704. The processor-based system 700 also includes random access memory (RAM) 710, and can include removable memory 715, such as flash memory, which also communicate with the CPU 702 over the bus 704. The imaging device 708 may be combined with a processor, such as a CPU, digital signal processor, or microprocessor, with or without memory storage on a single integrated circuit or on a different chip than the processor.

FIG. 8 shows another exemplary system 800 having a device 810 incorporating an imager chip 812 constructed in accordance with an embodiment of the invention (i.e., imager 110 of FIG. 2, imager 610 of FIG. 6). The imager chip 812 can include a photosensor array 814, photosensor interface 815, memory circuit 816, and a controller 820 integrated on the same silicon chip. The photosensor interface 815 can be controlled by the controller 820 for addressing the array 814. The system 800 is constructed and operated as described in copending U.S. application Ser. No. 10/143,578.

The memory circuit 816 can communicate with the other operational circuits of the device 810, including, but not limited to, the controller 820 (e.g., an 8051 controller), a serializer module 824, extended shift registers SFRs 822, and an RF (radio frequency) transmitter 828. The memory circuit 816 is capable of storing operational information for the photosensor array 814 and all other circuitry incorporated into the device 810. Further, the memory circuit 816 is be capable of storing images received by the photosensor array 814. The controller 820 operates as the “brain” of the device 810 using programming and/or data stored in the memory circuit 816, and/or in an internal ROM. The controller 820 can utilize the stored programs and/or data in controlling the acquiring of images, the storing of images, and the communication of images to an external system for viewing.

The CMOS photosensor array 814 can download captured images, like a camera. However, the CMOS photosensor array 814 of the invention can also download programming and/or operational information as data-input 834, such as software, programming, or other useful data. A user can select the data desired to be downloaded by utilizing a program command system 830, which can contain a collection of programs, instructions, software, or other data that can be utilized by the device 810. The program command system 830, which can be a standard computer, communicates to a photo-data generator 832, which can be any device capable of outputting light signals, for instance, a computer monitor (CRT) connected to a computer, or an LED unit. Preferably, the photo-data generator 832 can output light at various wavelengths (colors) and intensities, and in various patterns.

The photo-data generator 832 generates light 836, which is input to photosensor array 814 during a period when it is not acquiring images. This period can be controlled and designated by the controller 820. The light 836 can be varied in any means known in the art so that it corresponds to the data desired to be downloaded into the device 810. As an example, the light can be varied in color, where different colors or color patterns can be read by the photosensor array 814, stored in the memory circuit 16, and interpreted by the controller 820 of the device 810, via communication with the photosensor array 814, as different digital information (i.e., “1s” and “0s”). In this way, the memory circuit 814, and device 810 in general, can be programmed by a user with the input of light 836 to the photosensor array 814.

The device 810 functions as an imager camera. The camera function of the device 810 is like that of any other CMOS imager camera to acquire still frames or constant motion video. If necessary, the LED(s) 818 can function as light strobes during camera use, and be synchronized with the image acquisition by the photosensor array 814. Light 836 from the LED 818 can illuminate a subject 838 within an image area to be captured. The reflected light 836 from the illuminated subject 838 can be acquired by the photosensor array 814. The images acquired by the photosensor array 814 are communicated to and translated by the serializer module 824 into a format for image output.

The memory circuit 816 can store programming and/or data so that the controller 820 can use the input programs and/or data acquired during the data input operation to direct the operation of the photosensor array 814, the serializer module 824, and the extended SFRs 822 (all of which can be in communication with the memory circuit 816 and controller 820) for image capture, storage, processing, and output.

At a desired time, or on an ongoing basis, the stored images can be translated into an RF data output 840 generated by an RF transmitter 828 in communication with the serializer module 824 under control of the controller 820. The images, as RF data output 840, are transmitted to an RF data receiver 842. The RF data receiver 842 is in communication with the program command system 830 so that a user can receive the images acquired by the photosensor array 814 for viewing, for example on the same computer monitor (i.e., photo-data generator 832) that could be used to initially program the device 810. In one desired embodiment, the device 810 is incorporated into a swallowable pill as described in copending U.S. application Ser. No. 10/143,578.

The processes and devices described above illustrate preferred methods and typical devices of many that could be used and produced. The above description and drawings illustrate embodiments, which achieve the objects, features, and advantages of the present invention. However, it is not intended that the present invention be strictly limited to the above-described and illustrated embodiments. Any modification, though presently unforeseeable, of the present invention that comes within the spirit and scope of the following claims should be considered part of the present invention. 

1. A method of controlling an imager comprising an array of pixels, said method comprising the acts of: starting an exposure period; obtaining pixel signals from a set of pixels in the array; comparing a value of each pixel signal to a reference level; comparing a current exposure time to a maximum exposure time; determining if a predetermined number of pixels have a pixel signal value greater than the reference level; determining a time interval for the current exposure time; and setting a readout gain to a minimum gain and setting the reference level to a full scale level if it is determined that a predetermined number of pixels have a pixel signal value greater than the reference level and the current exposure time is within a predetermined time interval that is based on a preferred exposure time and a maximum gain value.
 2. The method of claim 1, further comprising the act of ending the exposure period either if the current exposure time is greater than or equal to the maximum exposure time or if a predetermined number of pixels have a pixel signal value greater than the reference level.
 3. The method of claim 1, further comprising the act of repeating said obtaining act through said adjusting act if the current exposure time is less than the maximum exposure time.
 4. The method of claim 1, wherein said act of starting the exposure period comprises illuminating an illumination device.
 5. The method of claim 1, wherein said act of obtaining comprises the acts of: scanning rows of pixels in the array; and inputting pixel signals from a set of columns of the array.
 6. The method of claim 1, wherein the reference level is a level based on a full scale voltage level and a mean of a reset level.
 7. The method of claim 1, wherein said act of starting the exposure period comprises beginning an integration period.
 8. A method of controlling an imager comprising an array of pixels, said method comprising the acts of: starting an exposure period; obtaining pixel signals from a set of pixels in the array; comparing a value of each pixel signal to a reference level; comparing a current exposure time to a maximum exposure time; determining if a predetermined number of pixels have a pixel signal value greater than the reference level; determining a time interval for the current exposure time; and setting a readout gain to a gain between a maximum gain and a minimum gain and setting the reference level to a full scale level divided by the gain between a maximum gain and a minimum gain if it is determined that a predetermined number of pixels have a pixel signal value greater than the reference level and the current exposure time is within a predetermined time interval that spans a first time based on a preferred exposure time and a maximum gain value and a second time based on the preferred exposure time and the gain between the maximum and minimum gains.
 9. The method of claim 8, further comprising the act of ending the exposure period either if the current exposure time is greater than or equal to the maximum exposure time or if a predetermined number of pixels have a pixel signal value greater than the reference level.
 10. The method of claim 8, further comprising the act of repeating said obtaining act through said adjusting act if the current exposure time is less than the maximum exposure time.
 11. The method of claim 8, wherein said act of starting the exposure period comprises illuminating an illumination device.
 12. The method of claim 8, wherein said act of starting the exposure period comprises beginning an integration period.
 13. The method of claim 8, wherein said act of obtaining comprises the acts of: scanning rows of pixels in the array; and inputting pixel signals from a set of columns of the array.
 14. The method of claim 8, wherein the reference level is a level based on a full scale voltage level and a mean of a reset level.
 15. A method of controlling an imager comprising an array of pixels, said method comprising the acts of: starting an exposure period; obtaining pixel signals from a set of pixels in the array; comparing a value of each pixel signal to a reference level; comparing a current exposure time to a maximum exposure time; determining if a predetermined number of pixels have a pixel signal value greater than the reference level; if the current exposure time is less than the maximum exposure time and the predetermined number of pixels do not have a pixel signal value greater than the reference level, the steps of obtaining pixel signals, comparing a value of each pixel signal to a reference level, comparing a current exposure time to a maximum exposure time and determining if a predetermined number of pixels have a pixel signal value greater than the reference level are repeated until the exposure time is greater than the maximum exposure time or the predetermined number of pixels do have a pixel signal value greater than the reference level; determining a time interval for the current exposure time; comparing the time interval for the current exposure time to a set of two predetermined time intervals; if the time interval for the current exposure time is less than both of the predetermined time intervals, setting a readout gain to a minimum gain, setting the reference level to a full scale level, and repeating the steps of obtaining pixel signals from the set of pixels in the array, comparing a value of each pixel signal to the reference level, comparing the current exposure time to the maximum exposure time until it is determined that the exposure time is greater than the maximum exposure time or the predetermined number of pixels have a pixel signal value greater than the reference level, at which point the exposure period is ended; if the time interval for the current exposure time is greater than both of the predetermined time intervals, setting a readout gain to a maximum gain and ending the exposure period; and if the time interval for the current exposure time is between the predetermined time intervals, setting a readout gain to a middle gain that is between the maximum gain and the minimum gain, setting the reference level to the full scale level divided by the middle gain, and repeating the steps of obtaining pixel signals from the set of pixels in the array, comparing a value of each pixel signal to the reference level, comparing the current exposure time to the maximum exposure time until it is determined that the exposure time is greater than the maximum exposure time or the predetermined number of pixels have a pixel signal value greater than the reference level, at which point the exposure period is ended.
 16. The method of claim 15, wherein the predetermined time intervals are based on a preferred exposure time, the maximum gain and the middle gain.
 17. The method of claim 16, wherein one of the predetermined time intervals is the preferred exposure time divided by the maximum gain and the other of the predetermined time intervals is the preferred exposure time multiplied by the middle gain and divided by the maximum gain.
 18. The method of claim 15, wherein said act of starting the exposure period comprises illuminating an illumination device.
 19. The method of claim 15, wherein said act of starting the exposure period comprises beginning an integration period.
 20. The method of claim 15, wherein said act of obtaining pixel signals from a set of pixels in the array comprises the acts of: scanning rows of pixels in the array; and inputting pixel signals from a set of columns of the array. 